<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>丰付支付</title>
[#include "/admin/include/admin_static.htm"]
    <script type="text/javascript">
        $(function () {
            layui.use(['form', 'layer','upload','layedit'], function () {
                var form = layui.form(), $ = layui.jquery, layer = layui.layer,upload = layui.upload,layedit = layui.layedit;

                form.on('submit(saveForm)', function (data) {
                    var index = layer.load();
                    ajax({
                        url: "${path}/admin/payment/saveValue",
                        data: data.field,
                        success: function (result) {
                            layer.msg(result.content,{time:200}, function () {
                                location.reload();
                            });
                            layer.close(index);
                        },
                        complete: function () {
                            layer.close(index);
                        }
                    });
                    return false;
                });


            });
        });
    </script>


    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>丰付支付</legend>
    </fieldset>
    <form class="layui-form">
        <input name="paymentId" type="hidden" value="${payment.id}">
        [#list paymentValues as paymentvalue]
        <div class="layui-form-item">
            <label class="layui-form-label">${paymentvalue.paramName}：</label>
            <div class="layui-input-block" style="margin-left: 150px">
                <input name="${paymentvalue.paramName}" id="${paymentvalue.paramName}" type="text" class="layui-input" value="${paymentvalue.paramValue}" placeholder="${paymentvalue.placeholder}">
            </div>
        </div>
        [/#list]

        <div class="layui-form-item">
            <div class="layui-input-block">
                <div class="layui-inline">
                    <button lay-submit="" lay-filter="saveForm" class="layui-btn" style="width: 280px;margin-top:3px;">确认保存</button>
                </div>
            </div>
        </div>

    </form>
</html>